package com.tang.mybatis.constants;

/**
 * @author Tang
 * @classname Constants
 * @description [  ]
 * @date 2022/4/6 16:51
 */
public interface Constants {


    /**
     * 在properties文件中配置信息
     */
    String DB_DRIVER_CONF = "db.driver";

    String DB_URL_CONF = "db.url";

    String DB_USERNAME_CONF = "db.username";

    String db_PASSWORD = "db.password";

    String MAPPER_LOCATION = "mapper.location";

    /**
     * mapper xml
     *
     */
    String MAPPER_FILE_SUFFIX = ".xml";
    String XML_ROOT_LABEL = "mapper";
    String XML_SELECT_NAMESPACE = "namespace";
    String XML_SELECT_RESULT_TYPE = "resultType";
    String XML_ID = "id";

    String CHARSET_UTF8 = "UTF-8";

    public enum SqlType {

        SELECT("select"),
        INSERT("insert"),
        UPDATE("update"),
        DELETE("delete"),
        DEFAULT("default"),
        ;

        private String name;

        private SqlType(String name) {
            this.name = name;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }
    }

}